package com.ghpt.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("jiaotongxq")
public class JiaoTongXQ implements UpdatableEntity{
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("value")
    private Double value;
    // 显式添加无参构造函数
    public JiaoTongXQ() {
    }
    @Override
    public String toString() {
        return "JiaoTongXQ{" +
                "id=" + id +
                ", value=" + value +
                '}';
    }

    public JiaoTongXQ(Long id, Double value) {
        this.id = id;
        this.value = value;
    }

    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public Double getValue() {
        return value;
    }
    @Override
    public void setValue(Double value) {
        this.value = value;
    }
}